﻿namespace IESN.Communication
{
    using System;

    public interface IPLC
    {
        void CloseComm();
        string NReadWord(short start_dm_address, short dm_count);
        bool NReadWord(short start_dm_address, short dm_count, ref byte[] value_byte);
        string NReadWord(short start_dm_address, short dm_count, string DataType);
        string NResetBit(short dmaddress, short bitnumber);
        string NSetBit(short dmaddress, short bitnumber);
        bool NWriteWord(short start_dm_address, short dm_count, byte[] SendArry);
        string NWriteWord(short start_dm_address, short dm_count, string Indata);
        string NWriteWord(short start_dm_address, short dm_count, string Indata, string DataType);
        object writeBitArea(short startOffset, short startBitOffset, short bitSize, string WriteData);

        short DBNo { get; set; }

        short Status { get; set; }

        short Status_NRead { get; set; }

        short Status_NResetbit { get; set; }

        short Status_NSetbit { get; set; }

        short Status_NWrite { get; set; }
    }
}

